﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DependencyInjectionExample
{
	//Setter
	public class MainClass
	{
		IDependentClass dependentClass;
		public IDependentClass DependentClass 
		{
			set { dependentClass = value; }
			get { return dependentClass; }
		}

		public void DoSomething() 
		{
			dependentClass.DoSomethingInDependentClass();
		}
	}
}
